]> dgit.raspbian.org Git - libreoffice.git/commitdiff
[PATCH] firebird: don't run an attached database's own event triggers
authorCaolán McNamara <caolan.mcnamara@collabora.com>
Sun, 12 Jul 2026 10:28:48 +0000 (10:28 +0000)
committerRene Engelhard <rene@debian.org>
Sat, 3 Oct 2026 10:46:08 +0000 (12:46 +0200)
for the embedded and file cases suppress the database's ON CONNECT and
similar event triggers when attaching, they should not fire just because
the document was opened

Change-Id: I37edab43f25d8cb72cc6dcafd743045f96b4c2e6
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/6700
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 36335ff89ea2309e99da02b449c9b35517cd6f9d)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208029
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208062
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208074
Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208110
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Reviewed-by: Hossein <hossein@libreoffice.org>
Gbp-Pq: Name CVE-2026-63266-1.diff

connectivity/source/drivers/firebird/Connection.cxx

index 9b620d05adf181a4351692aa18fd573288d5b88d..dad99cd50b8d81f1ed74f527e05d205c821b7852 100644 (file)
@@ -233,8 +233,13 @@ void Connection::construct(const OUString& url, const Sequence< PropertyValue >&
 
             // Do any more dpbBuffer additions here
 
+            // attach without running the database's own event triggers
             if (m_bIsEmbedded || m_bIsFile)
             {
+                dpbBuffer.push_back(isc_dpb_no_db_triggers);
+                dpbBuffer.push_back(1); // 1 byte long
+                dpbBuffer.push_back(1);
+
                 userName = "sysdba"_ostr;
                 userPassword = "masterkey"_ostr;
             }